package com.college.facade.impl;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;

import com.college.domain.Student;
import com.college.facade.StudentRegistrationFacade;
import com.college.populator.impl.StudentRegistrationPopulatorImpl;
import com.college.service.impl.StudentRegistrationServiceImpl;

public class StudentRegistrationFacadeImpl implements StudentRegistrationFacade{
	
	@Autowired
	StudentRegistrationPopulatorImpl studentRegistrationPopulator;
	@Autowired
	StudentRegistrationServiceImpl studentRegistrationService;
	
	public boolean studentRegistration(HttpServletRequest request,Student student){
		
		studentRegistrationPopulator.studentRegistration(request, student);
		
		return studentRegistrationService.studentPersistService(student);
		
	}

}
